package com.djl.sqtg.service.impl;

import com.djl.sqtg.entity.Colonel;
import com.djl.sqtg.entity.ColonelOrder;
import com.djl.sqtg.entity.TzMonthData;
import com.djl.sqtg.entity.User;
import com.djl.sqtg.mapper.ColonelMapper;
import com.djl.sqtg.service.IColonelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ColonelService implements IColonelService {

    @Autowired
    private ColonelMapper colonelMapper;



    @Override
    public Integer register(Colonel colonel) {
        return colonelMapper.register(colonel);
    }

    @Override
    public Colonel login(String account, String password) {
        return colonelMapper.login(account,password);
    }

    @Override
    public Integer getState(String account, String password) {
        return colonelMapper.getState(account,password);
    }

    @Override
    public Colonel findColonelByTelep(String telep) {
        return colonelMapper.findColonelByTelep(telep);
    }

    @Override
    public List<Colonel> getApplicationColonel() {
        return colonelMapper.getApplicationColonel();
    }

    @Override
    public Integer getAllColonelNum(Integer state) {
        return colonelMapper.getAllColonelNum(state);
    }

    @Override
    public Integer getColonelBySearchNum(Integer stateSelect,String dateSelect,String username, String telep, Integer state) {
        return colonelMapper.getColonelBySearchNum(stateSelect,dateSelect,username,telep,state);
    }


    @Override
    public List<Colonel> getColonelByPageNum(Integer pageNum, Integer pageSize, Integer state) {
        return colonelMapper.getColonelByPageNum(pageNum,pageSize,state);
    }

    @Override
    public List<Colonel> getColonelBySearch(Integer stateSelect,String dateSelect,String username, String telep, Integer pageNum, Integer pageSize, Integer state) {
        return colonelMapper.getColonelBySearch(stateSelect,dateSelect,username,telep,pageNum,pageSize,state);
    }


    @Override
    public Integer updateApplicationState(Integer cid,Integer state) {
        return colonelMapper.updateApplicationState(cid,state);
    }

    @Override
    public Integer updateRoyalty(Integer cid, Integer royalty) {
        return colonelMapper.updateRoyalty(cid,royalty);
    }

    @Override
    public Float getMonthTurnover(String dateSelect,Integer tzid) {
        return colonelMapper.getMonthTurnover(dateSelect,tzid);
    }

    @Override
    public List<TzMonthData> getColonelIdRoyalty() {
        return colonelMapper.getColonelIdRoyalty();
    }

    @Override
    public Integer addTzMonthData(TzMonthData tzMonthData) {
        return colonelMapper.addTzMonthData(tzMonthData);
    }

    @Override
    public Integer getTzMonthDataByTzidMonth(Integer tzid, String yearmonth) {
        return colonelMapper.getTzMonthDataByTzidMonth(tzid,yearmonth);
    }

    @Override
    public List<TzMonthData> getTzMonthData(Integer tzid) {
        return colonelMapper.getTzMonthData(tzid);
    }

    @Override
    public List<TzMonthData> getTzMonthDataByDate(Integer tzid, String dateSelect) {
        return colonelMapper.getTzMonthDataByDate(tzid,dateSelect);
    }

    @Override
    public Integer colonelNum() {
        return colonelMapper.colonelNum();
    }

    @Override
    public Integer getAuditColonelNum() {
        return colonelMapper.getAuditColonelNum();
    }

    @Override
    public Float colonelMoney() {
        return colonelMapper.colonelMoney();
    }

    @Override
    public Integer colonelNewNum(String date) {
        return colonelMapper.colonelNewNum(date);
    }

    @Override
    public List<ColonelOrder> getColonelOrderNumRank(String date) {
        return colonelMapper.getColonelOrderNumRank(date);
    }

    @Override
    public List<ColonelOrder> getColonelOrderMoneyRank(String date) {
        return colonelMapper.getColonelOrderMoneyRank(date);
    }

    @Override
    public List<ColonelOrder> getTMColonelOrderNumRank(String[] date) {
        return colonelMapper.getTMColonelOrderNumRank(date);
    }

    @Override
    public List<ColonelOrder> getTMColonelOrderMoneyRank(String[] date) {
        return colonelMapper.getTMColonelOrderMoneyRank(date);
    }

    @Override
    public Integer colonelNewNumTimePeriod(String startDate, String endDate) {
        return colonelMapper.colonelNewNumTimePeriod(startDate,endDate);
    }

    @Override
    public List<ColonelOrder> getColonelOrderNumRankTimePeriod(String startDate, String endDate) {
        return colonelMapper.getColonelOrderNumRankTimePeriod(startDate,endDate);
    }

    @Override
    public List<ColonelOrder> getColonelOrderMoneyRankTimePeriod(String startDate, String endDate) {
        return colonelMapper.getColonelOrderMoneyRankTimePeriod(startDate,endDate);
    }

    @Override
    public Integer updateColonel(Colonel colonel) {
        return colonelMapper.updateColonel(colonel);
    }

    @Override
    public List<User> getUserByTzid(Integer tzid) {
        return colonelMapper.getUserByTzid(tzid);
    }

    @Override
    public Integer getColonelOrderNum(Integer tzid,String date) {
        return colonelMapper.getColonelOrderNum(tzid,date);
    }

    @Override
    public Float getColonelOrderMoney(Integer tzid,String date) {
        return colonelMapper.getColonelOrderMoney(tzid,date);
    }

    @Override
    public Integer getColonelAllOrderNum(Integer tzid) {
        return colonelMapper.getColonelAllOrderNum(tzid);
    }

    @Override
    public Float getColonelOrderAllMoney(Integer tzid) {
        return colonelMapper.getColonelOrderAllMoney(tzid);
    }

    @Override
    public Integer getRoyalty(Integer tzid) {
        return colonelMapper.getRoyalty(tzid);
    }

    @Override
    public Integer getAllUserColonel(Integer tzid) {
        return colonelMapper.getAllUserColonel(tzid);
    }

    @Override
    public Integer getMonNewUserColonel(Integer tzid) {
        return colonelMapper.getMonNewUserColonel(tzid);
    }

    @Override
    public List consumeUserNum(Integer tzid) {
        return colonelMapper.consumeUserNum(tzid);
    }

    @Override
    public Float getColonelMoney(Integer tzid) {
        return colonelMapper.getColonelMoney(tzid);
    }

    @Override
    public Integer updateColonelMoney(Integer tzid, Float money) {
        return colonelMapper.updateColonelMoney(tzid,money);
    }


}
